package com.buba.springcloud.service.impl;

import com.buba.springcloud.dao.FoodTypeMapper;
import com.buba.springcloud.entities.HfFoodtype;
import com.buba.springcloud.service.FoodTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author taodeyu
 * @Date 2022/1/5 下午 8:44
 * @Version 1.0
 */
@Service
public class FoodTypeServiceImpl implements FoodTypeService {
    @Resource
    private FoodTypeMapper foodTypeMapper;

    @Override
    public List<HfFoodtype> getFoodType() {
        return foodTypeMapper.getFoodType();
    }

    @Override
    public Integer deleteFoodTypeById(Integer id) {
        return foodTypeMapper.deleteFoodTypeById(id);
    }
}
